import { request } from '@pkg/request/src';

export enum Api {
  page = '/adv/page',
  add = '/adv/save',
  update = '/adv/update',
  remove = '/adv/remove',
  setState = '/adv/setAdvStatus',
  copyAdv = '/adv/copyAdv',
}

export const copyAdv = params =>
  request.post(
    {
      url: Api.copyAdv,
      params: params,
    },
    { errorMessageMode: 'message' },
  );
